* POLPAN dataset can be retreived from: http://polpan.org/en/data-and-documentation/data/
* In the analyses that follow, we use the 1988 wave of the POLPAN survey   


global PathData = ""
use ${PathData}polpan.dta, clear 

gen strike = 1 if z149=="Yes"
replace strike = 0 if z149=="No"
replace strike = 0 if z149=="NA"

gen strike2 = 1 if z149_80=="Yes"
replace strike2 = 0 if z149_80=="No"
replace strike2 = 0 if z149_80=="NA"

gen sabotage = 1 if z151=="Yes"
replace sabotage = 0 if z151=="No"
replace sabotage = 0 if z151=="NA"

tab job1988_7clas, gen(job_reduced)
tab job1988_14clas, gen(job)

gen yrbirth2 = yrbirth^2
tab gender, gen(sex)

reg sabotage strike if wave1988==1
reg sabotage strike job1-job15 sex1 if wave1988==1

zval strike sabotage

eststo clear
eststo: reg z_sabotage z_strike job1-job15 sex1 if wave1988==1
estadd local controls = "Yes"
esttab using "${PathData}TableA19.tex", b(3) se(3) star(* 0.1 ** 0.05 *** 0.01) keep(z_strike) stats(controls N, fmt(0) labels("Controls" "N")) label nodepvar mtitles title("Sabotage and Protest: Individual-Level Analysis") replace nonotes postfoot(" ")
